﻿<%@ Page Title="View Car Capactiy" Language="C#" MasterPageFile="~/Provider/CarInsurance/Liberty_CarInsurance.master"
    AutoEventWireup="true" CodeFile="ViewProviderProposalFormDetail.aspx.cs" Inherits="Provider_ViewProviderProposalFormDetail" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="provider_inner">
        <h1>
            <asp:Label ID="lblFormTitle" runat="server" Text="Label"></asp:Label>&nbsp Proposal
            Form Detail</h1>
        <fieldset>
            <dl>
                <dt class="top_action">
                    <label>
                        Date :
                    </label>
                </dt>
                <dd>
                    <asp:DropDownList ID="ddlYear" runat="server">
                        <asp:ListItem Value="0000">All</asp:ListItem>
                        <asp:ListItem Value="2010">2010</asp:ListItem>
                        <asp:ListItem Value="2011">2011</asp:ListItem>
                        <asp:ListItem Value="2012">2012</asp:ListItem>
                        <asp:ListItem Value="2013">2013</asp:ListItem>
                    </asp:DropDownList>
                    <asp:DropDownList ID="ddlMonth" runat="server">
                        <asp:ListItem Value="00">All</asp:ListItem>
                        <asp:ListItem Value="01">Jan</asp:ListItem>
                        <asp:ListItem Value="02">Feb</asp:ListItem>
                        <asp:ListItem Value="03">Mar</asp:ListItem>
                        <asp:ListItem Value="04">Apr</asp:ListItem>
                        <asp:ListItem Value="05">May</asp:ListItem>
                        <asp:ListItem Value="06">Jun</asp:ListItem>
                        <asp:ListItem Value="07">Jul</asp:ListItem>
                        <asp:ListItem Value="08">Aug</asp:ListItem>
                        <asp:ListItem Value="09">Sep</asp:ListItem>
                        <asp:ListItem Value="10">Oct</asp:ListItem>
                        <asp:ListItem Value="11">Nov</asp:ListItem>
                        <asp:ListItem Value="12">Dec</asp:ListItem>
                    </asp:DropDownList>
                    <asp:DropDownList ID="ddlDay" runat="server" ToolTip="Choose Day">
                        <asp:ListItem Value="00">All</asp:ListItem>
                        <asp:ListItem Value="01">01</asp:ListItem>
                        <asp:ListItem Value="02">02</asp:ListItem>
                        <asp:ListItem Value="03">03</asp:ListItem>
                        <asp:ListItem Value="04">04</asp:ListItem>
                        <asp:ListItem Value="05">05</asp:ListItem>
                        <asp:ListItem Value="06">06</asp:ListItem>
                        <asp:ListItem Value="07">07</asp:ListItem>
                        <asp:ListItem Value="08">08</asp:ListItem>
                        <asp:ListItem Value="09">09</asp:ListItem>
                        <asp:ListItem>10</asp:ListItem>
                        <asp:ListItem>11</asp:ListItem>
                        <asp:ListItem>12</asp:ListItem>
                        <asp:ListItem>13</asp:ListItem>
                        <asp:ListItem>14</asp:ListItem>
                        <asp:ListItem>15</asp:ListItem>
                        <asp:ListItem>16</asp:ListItem>
                        <asp:ListItem>17</asp:ListItem>
                        <asp:ListItem>18</asp:ListItem>
                        <asp:ListItem>19</asp:ListItem>
                        <asp:ListItem>20</asp:ListItem>
                        <asp:ListItem>21</asp:ListItem>
                        <asp:ListItem>22</asp:ListItem>
                        <asp:ListItem>23</asp:ListItem>
                        <asp:ListItem>24</asp:ListItem>
                        <asp:ListItem>25</asp:ListItem>
                        <asp:ListItem>26</asp:ListItem>
                        <asp:ListItem>27</asp:ListItem>
                        <asp:ListItem>28</asp:ListItem>
                        <asp:ListItem>29</asp:ListItem>
                        <asp:ListItem>30</asp:ListItem>
                        <asp:ListItem>31</asp:ListItem>
                    </asp:DropDownList>
                    <asp:Button ID="ImageButton1" runat="server" OnClick="ImageButton1_Click" Text="Submit" />
                </dd>
            </dl>
        </fieldset>
        <div style="display: none">
            <asp:TextBox ID="txtModifiedDate" runat="server"></asp:TextBox></div>
        <div style="text-align:right;">
            <asp:HyperLink Visible="false" ID="hplPrint" NavigateUrl="" Target="_blank" runat="server">Print Preview</asp:HyperLink>
        </div>
        <asp:GridView ID="grvResultViewSummary" runat="server" AllowPaging="True" AllowSorting="True"
            AutoGenerateColumns="False" CellPadding="2" CssClass="progridstyle" EmptyDataText="There are no data records to display."
            GridLines="None" DataSourceID="sqlDsProposalFormDetail" OnRowDataBound="grvResultViewSummary_RowDataBound">
            <Columns>
                <asp:BoundField DataField="ProposalFormDetailID" HeaderText="ProposalFormSummaryID"
                    Visible="false" InsertVisible="False" ReadOnly="True" SortExpression="ProposalFormSummaryID" />
                <asp:BoundField DataField="ModifiedDate" HeaderText="Date Submitted" SortExpression="ModifiedDate" />
                <asp:TemplateField HeaderText="Reference Number">
                    <ItemTemplate>
                        <asp:Label ID="lblRefNo" runat="server"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="CustomerName" HeaderText="Proposer's Name" SortExpression="CustomerName" />
                <asp:BoundField DataField="NRIC" HeaderText="NRIC/Passport" SortExpression="NRIC" />
                <asp:BoundField DataField="Premium" DataFormatString="${0:#,0}" HeaderText="Premium ($)"
                    SortExpression="Premium" />
                <asp:BoundField DataField="ProviderCompanyId" Visible="false" HeaderText="ProviderCompanyId"
                    SortExpression="ProviderCompanyId" />
                <asp:BoundField DataField="RefCEUserId" Visible="false" HeaderText="RefCEUserId"
                    SortExpression="RefCEUserId" />
            </Columns>
            <FooterStyle />
            <PagerStyle />
            <SelectedRowStyle CssClass="progridover" />
            <HeaderStyle CssClass="progridheader" />
            <EditRowStyle />
            <AlternatingRowStyle CssClass="progridodd" />
            <RowStyle CssClass="progrideven" />
        </asp:GridView>
        <asp:SqlDataSource ID="sqlDsProposalFormDetail" runat="server" ConnectionString="<%$ ConnectionStrings:CX_DBConnectionString %>"
            SelectCommand="sprocProviderProposalDetailsSelectItemList" SelectCommandType="StoredProcedure">
            <SelectParameters>
                <asp:SessionParameter Name="ProviderCompanyId" SessionField="ProviderCompanyId" Type="Int64" />
                <asp:QueryStringParameter Name="FormType" QueryStringField="FormType" Type="String" />
                <asp:SessionParameter Name="RefCEUserId" SessionField="UserId" Type="Int64" />
                <asp:ControlParameter ControlID="txtModifiedDate" Name="SelectedDate" PropertyName="Text"
                    Type="String" />
            </SelectParameters>
        </asp:SqlDataSource>
        <asp:ImageButton OnClientClick="javascript:return confirm('Are you sure to go back?');"
            ID="ibtBack" runat="server" ImageUrl="~/Provider/images/buttons/back1.gif" OnClick="ibtBack_Click" />
    </div>
</asp:Content>
